import request from '../utils/request'
// 获取管理员列表接口
export const getAdminListApi=(data)=>{
  return request({
    url:"/VueHandler/AdminHandler?action=show",
    method:"get",
    params:data
  })
}
// 添加管理员接口
export const addAdmin=(data)=>{
  return request({
    url:"/VueHandler/AdminLoginAndRegHandler?action=add",
    method:"post",
    data
  })
}

// 删除接口
export const toDelApi=(tokenId)=>{
  return   request({
    url:"/VueHandler/AdminHandler?action=delete",
    method:"get",
    params:{tokenId:tokenId}
  })
}
// 编辑管理员
export const editAdminApi=(data)=>{
  return request({
      url:"/VueHandler/AdminHandler?action=update",
    method:"post",
    data:data
  })
}